﻿public class PagedResult<TData>
    where TData : class
{
    public PagedResult(int total, List<TData> items)
    {
        Total = total;
        Items = items;
    }

    public int Total { get; set; }
    public List<TData> Items { get; set; }
}

public abstract class PagedResultRequestDto
{
    public int Page { get; set; } = 1;
    public int Size { get; set; } = 10;

    public int Skip => (Page - 1) * Size;

    public int Take => Size;
}